package io.github.talelin.latticy.model;

import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.github.talelin.latticy.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author generator@lms
 * @since 2021-04-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("c_spu")
public class SpuDO extends BaseModel {


    /**
     * 商品标题-展示用
     */
    private String title;

    /**
     * 商品描述
     */
    private String description;

    /**
     * 商品主图
     */
    private String img;

    /**
     * 商品是否下线 0表示下线1表示上线
     */
    @JsonIgnore
    private Integer online;

    /**
     * 商品价格
     */
    private BigDecimal price;

    /**
     * 商品标签
     */
    private String tags;

    private Integer uid;

    private String username;

    private String userAvatar;


}
